﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;

namespace WinFormProj
{
    public partial class OperationForm : Form
    {
        public OperationForm()
        {
            InitializeComponent();
        }

        private void OperateButton_Click(object sender, EventArgs e)
        {
            int a = 0;
            string value = ConfigurationManager.AppSettings[0];
            Configuration config= ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None );
            config.AppSettings.Settings["Name"].Value  = "ding";
            config.Save(ConfigurationSaveMode.Full ); 
        }
    }
}
